<?php
import( 'de.ceus-media.framework.krypton.core.Model' );
/**
 *	Data Model of Role Users.
 *	@package		mv2.model
 *	@extends		Framework_Krypton_Core_Model
 *	@author			Christian Würker <Christian.Wuerker@CeuS-Media.de>
 *	@since			29.08.2007
 *	@version		0.1
 */
/**
 *	Data Model of Role Users.
 *	@package		mv2.model
 *	@extends		Framework_Krypton_Core_Model
 *	@author			Christian Würker <Christian.Wuerker@CeuS-Media.de>
 *	@since			29.08.2007
 *	@version		0.1
 */
final class Model_RoleUser extends Framework_Krypton_Core_Model
{
	/**
	 *	Constructor.
	 *	@access		public
	 *	@param		int			$roleUserId		ID of Role User
	 *	@return		void
	 */
	public function __construct( $roleUserId = NULL )
	{
		$tableName	= "role_users";
		$columns	= array(
			"roleUserId",
			"creatorId",
			"roleId",
			"userId",
			"assigned",
		);
		$primaryKey	= $columns[0];
		$indices		= array(
			'creatorId',
			'roleId',
			'userId',
		);
		parent::__construct( $tableName, $columns, $primaryKey, $$primaryKey );
		parent::setIndices( $indices );
	}
}
?>